using System.Collections.Generic;
using System.ComponentModel;

namespace GuitarChordFinder
{
    /// <summary>
    /// Describes each chord (Major, Minor, suspended, etc)
    /// </summary>
    public class ChordType : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        private string code;
        public string Code
        {
            get { return code; }
            set 
            { 
                code = value;
                if (PropertyChanged != null)
                    PropertyChanged(this, new PropertyChangedEventArgs("Code"));
            }
        }

        public List<int> ScaleSlots { get; set; }
        private string imageSource;
        public string ImageSource
        {
            get { return imageSource; }
            set
            {
                imageSource = value;
                if (PropertyChanged != null)
                    PropertyChanged(this, new PropertyChangedEventArgs("ImageSource"));
            }
        }
    }
}